package sis.studentinfo;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-07-25 18:24
 * @notify
 * @version 1.0
 */

public class Scorer {
    public int score(String input) {
        return Integer.parseInt(input);
    }

    public boolean isValid(String input) {
        try {
            Integer.parseInt(input);
            return true;
        } catch (NumberFormatException e) {
            return false;
        }
    }
}
